package cn.steel.service;


import cn.steel.domain.dto.ReceiptDto;
import cn.steel.domain.vo.ReceiptVo;

import java.util.List;

/**
 * @author: zhaoyuhan
 * @date: 2025/4/28
 * @description: 收货信息接口定义
 */
public interface ReceiptService {
    Long saveReceipt(Long userId, ReceiptDto receiptDto);
    List<ReceiptVo> getReceiptList(Long userId);
    ReceiptVo getReceiptDetail(Long id, Long userId);
    boolean setDefaultReceipt(Long id, Long userId);

    boolean deleteReceipt(Long id, Long userId);
    boolean updateReceipt(Long userId, Long id, ReceiptDto receiptDto);
    boolean isAddressExists(Long userId, String contactName, String contactPhone, String deliveryAddress);


    ReceiptVo getDefaultReceipt(Long userId);
}
